<?php
namespace app\index\model;

use think\Exception;
use think\Model;

class Adminuser extends Model{
     public static function   adminuserInfo($post){
         try{
            $res=Adminuser::where('uname','=',$post['uname'])->where('pwd','=',md5($post['pwd']))->find();
         }catch (Exception $e){
             echo "<pre>";
             print_r($e->getMessage());
             echo "</pre>";
            $res=false;
         }

        return $res;
     }
      public static function   adminuserAddInfo($post){
         try{
            $res=Adminuser::insert($post);
         }catch (Exception $e){
           $res=false;
         }
         return $res;

      }
}